@layout("/common/_form.html",{js:["/assets/modular/web/magicBox/magicBox_add.js"]}){

<form class="layui-form" id="magicBoxForm" lay-filter="magicBoxForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">魔盒信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input id="magicBoxId" name="id" value="${magicBoxId}" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">魔盒类型<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="magicBoxTypeName" name="magicBoxTypeName" placeholder="请选择魔盒类型" type="text" class="layui-input" lay-verify="required" lay-reqtext="魔盒类型不能为空"/>
                            <input id="magicBoxTypeId" name="magicBoxTypeId" type="hidden" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">期数<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="periodTimeName" name="periodTimeName" placeholder="请选择期数" type="text" class="layui-input" lay-verify="required" lay-reqtext="期数不能为空"/>
                            <input id="periodTimeId" name="periodTimeId" type="hidden" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">魔盒数量<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="num" name="num" placeholder="请输入魔盒数量" type="number" class="layui-input" lay-verify="required|numver" lay-reqtext="魔盒数量不能为空"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">兑换金币数<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="needGold" name="needGold" placeholder="请输入兑换金币数" type="number" class="layui-input" lay-verify="required|numver" lay-reqtext="兑换金币数不能为空"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <textarea id="remark" name="remark" placeholder="请输入备注" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>
</form>
@}
